package scaladuct;

import java.lang.annotation.Annotation;

/**
 * <p/>
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: Sep 1, 2010
 * Time: 3:20:28 PM
 */
public class AnnotationBase implements Annotation {
    private final Class<? extends Annotation> type;

    public AnnotationBase(Class<? extends Annotation> type) {
        this.type = type;
    }

    public Class<? extends Annotation> annotationType() {
        return type;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
